#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @time     : 2019/7/22 11:46
# @Author   : BYF
# file      : HTMLRunner.py
# @version  :


from HTMLTestRunner import HTMLTestRunner
from config import config

def HTMLTReport():

    report_path=config.report_path
    report_dir = open(report_path, 'wb')  # 以二进制写模式打开文件

    runner = HTMLTestRunner(
        stream=report_dir,  # 指定测试报告文件
        title='lefull接口测试报告',  # 定义测试报告标题
        description='pytest',  # 定义测试报告副标题
    )

    return runner


print(config.report_path)